class CreateSettlementTypes < ActiveRecord::Migration
  def self.up
    create_table :settlement_types do |t|
      t.string :settlement_type           ,:limit => 16
      t.integer :is_locked                ,:limit => 1 ,:default => 0 #是否管理会要锁定 1为True 0为False
      t.timestamps
    end
    SettlementType.create(:settlement_type =>'现结')
    SettlementType.create(:settlement_type =>'月结')
  end
  
  def self.down
    drop_table :settlement_types
  end
end
